package itsm.isperp.module.repository.app;

import itsm.isperp.framework.data.mybatis.dao.CUDMapper;
import itsm.isperp.module.dto.app.FullCalendarDTO;
import itsm.isperp.module.entity.app.AppCalendarConfig;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 
 * 
 * @author lizx
 * @date 2013-5-12
 * @version V1.0
 */
@Repository
public interface AppCalendarConfigMapper extends CUDMapper<AppCalendarConfig> {

	public int elapsedWorktime(@Param("startDatetime") Date startDatetime,
			@Param("id") String id);

	public Date getWorktime(@Param("startDate") Date startDatetime,
			@Param("elapsedSecond") int elapsedSecond, @Param("id") String id);

	List<FullCalendarDTO> findWorkday(@Param("startDate") Date startDate,
			@Param("endDate") Date endDate, @Param("id") String id);

}
